<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>养殖企业信息管理</title>
	<meta name="decorator" content="default"/>
	<link href="${ctxCss}/common/listPage.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="${ctxScript}/js/vaccine.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
	<style>
		td{
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/bus/vaccine/vaccineRecord">补助记录</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="vaccine" action="${ctx}/bus/vaccine/vaccineRecord" method="post" class="breadcrumb form-search ">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
			<li><label>养殖场名称:</label><form:input path="entName" htmlEscape="false" maxlength="50" class="input-medium" /></li>
			<li><label>疫苗名称:</label><form:input path="vaccineName" htmlEscape="false" maxlength="50" class="input-medium"/></li>
			<li><label>审核通过时间</label>
				<input name="auditDate" type="text" readonly="readonly" maxlength="20" style="width:200px;" class="input-medium Wdate"
					   value="<fmt:formatDate value="${vaccine.auditDate}" pattern="yyyy-MM-dd"/>"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"
				/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" onclick="return page();"/>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed" style="width: 100%;table-layout: fixed;">
		<thead>
			<tr>
					<th style="width:3%;height: 28px">序号</th>
					<th style="width:5%;height: 28px">审核通过时间</th>
					<th style="width:8%;height: 28px ">养殖场名称</th>
					<th style="width:5%;height: 28px ">养殖种类</th>
					<th style="width:7%;height: 28px ">存栏量(头/只)</th>
					<th style="width:35%;height: 28px">疫苗名称</th>
					<th style="width:11%;height: 28px">疫苗生产企业</th>
					<th style="width:11%;height: 28px">疫苗采购量</th>
					<th style="width:5%;height: 28px">补助总额(元)</th>
					<th style="width:5%;height: 28px">发票</th>
				<shiro:hasPermission name="bus:vaccine:view"><th style="width:5%;height: 28px">操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="vaccine" varStatus="status">
			<tr>
					<td >
						${status.index+1+(page.pageNo-1)*page.pageSize}
					</td>

					<td >
						<fmt:formatDate value="${vaccine.auditDate}" pattern="yyyy-MM-dd"/>
					</td>

					<td >
							${vaccine.entName}
					</td>
					<td >
							${vaccine.farmType}
					</td >

					<td >
							${vaccine.initialDeposit}
					</td >
					<td title="${vaccine.vaccineName}">
							${vaccine.vaccineName}
					</td>
					<td title="${vaccine.factory}">
							${vaccine.factory}
					</td>
					<td title="${vaccine.groupConcatVaccoineAmountMl}">
							${vaccine.groupConcatVaccoineAmountMl}
					</td>
					<td >
							${vaccine.subsidyCash}
					</td>
					
					<td >
						<a href="#" onclick="invoicePhotoView('${vaccine.id}','bus_vaccine','invoice')">查看</a>
					</td>

				<shiro:hasPermission name="bus:entAudit:view"><td style="width:5%;height: 28px">
					<a href="javascript:;" onclick="checkPage('${vaccine.id}','${vaccine.entId}','1')">查看</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>